package com.teacher.service;

import com.teacher.common.CommonResult;
import com.teacher.pojo.dto.culturaltransmissiontask.CulturalTransmissionTaskAddDto;
import com.teacher.pojo.dto.culturaltransmissiontask.CulturalTransmissionTaskUpdateDto;
import com.teacher.pojo.entity.CulturalTransmissionTask;
import com.baomidou.mybatisplus.extension.service.IService;
import com.teacher.pojo.vo.culturaltransmissiontask.CulturalTransmissionTaskGetVo;

/**
 * <p>
 * 文化传播 服务类
 * </p>
 *
 * @author zfm
 * @since 2021-08-18
 */
public interface ICulturalTransmissionTaskService extends IService<CulturalTransmissionTask> {

    /**
     * 发起文化传播审批流程
     *
     * @param dto
     * @return
     */
    CommonResult<String> add(CulturalTransmissionTaskAddDto dto);

    /**
     * 更新流程
     *
     * @param dto
     * @return
     */
    CommonResult<String> updateInfo(CulturalTransmissionTaskUpdateDto dto);

    /**
     * 获取详情
     *
     * @param id
     * @return
     */
    CommonResult<CulturalTransmissionTaskGetVo> getDetails(Long id);
}
